<?php 
namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Userdevice extends Model {
    const UPDATED_AT ='updatedAt';

    const CREATED_AT = 'createdAt';

    protected $table = 'deviceInfo';

    protected $fillable = [];

    protected $dates = [];

    protected function getDateFormat()
    {
        return time();
    }
    public static $rules = [
        // Validation rules
        'deviceName' => 'required|max:10',
    ];
    public static $message = [
        'deviceName.required' => '请输入ipad名称',
        'deviceName.max' => 'ipad名称最长 :max 个字符',
    ];
    // Relationships

}
